package persistence;

import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;


public abstract class DaoJPA {
	
		
	protected void salvar(Object object) {
		EntityManager em = JPAUtil.getEntityManager();
		EntityTransaction et = em.getTransaction();
		et.begin();
		em.persist(object);
		et.commit();
		em.close();
	}
	
	
	
}
